package com.zxy.ziems.server.energy.convertor;

import com.zxy.ziems.server.device.pojo.dto.DeviceCustomDataValDTO;
import com.zxy.ziems.server.energy.pojo.entity.DeviceMeasureDataDayEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface DeviceMeasureDataConvertor {
    DeviceMeasureDataConvertor INSTANT = Mappers.getMapper(DeviceMeasureDataConvertor.class);

    DeviceCustomDataValDTO dayEntity2DeviceCustomDataValDTO(DeviceMeasureDataDayEntity entity);

    DeviceMeasureDataDayEntity DeviceCustomDataVal2DayEntity(DeviceCustomDataValDTO deviceCustomDataValDTO);
}
